import request from '@/utils/request'

// 查询抖音封面列列表
export function listTiktokCover(query) {
  return request({
    url: '/media/tiktokCover/list',
    method: 'get',
    params: query
  })
}

// 查询抖音封面列详细
export function getTiktokCover(id) {
  return request({
    url: '/media/tiktokCover/' + id,
    method: 'get'
  })
}

// 解析数据
export function createCover() {
  return request({
    url: '/media/tiktokCover/createCover',
    method: 'get'
  })
}





// 新增抖音封面列
export function addTiktokCover(data) {
  return request({
    url: '/media/tiktokCover',
    method: 'post',
    data: data
  })
}

// 修改抖音封面列
export function updateTiktokCover(data) {
  return request({
    url: '/media/tiktokCover',
    method: 'put',
    data: data
  })
}

// 删除抖音封面列
export function delTiktokCover(id) {
  return request({
    url: '/media/tiktokCover/' + id,
    method: 'delete'
  })
}
